import App from './App'

// #ifndef VUE3
import Vue from 'vue'

import * as Utils from '@/utils/utils.js'
Vue.prototype.$utils = Utils;

import tools from './mixin/tools.js'
Vue.mixin(tools);

// 引入uview
import uView from "uview-ui";
Vue.use(uView);


import store from './store'
Vue.prototype.$store = store

import * as vuexStore from '@/store/$u.mixin.js'
Vue.mixin(vuexStore)


//引入路由守卫
import {router,RouterMount} from './router.js'
Vue.use(router)

import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})

require('@/config/request.js')(app)

app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif